package  com.pcbly.web.business.news;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.news.NewsCommentBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface NewsCommentService extends BaseService<NewsCommentBean> {

	NewsCommentBean getNewsCommentBeanById(String id) throws Exception;
	
	void removeNewsCommentBeanById(String id) throws Exception;
	
	void removeNewsCommentBeanByIds(String ids) throws Exception;
	
	NewsCommentBean saveNewsCommentBean(NewsCommentBean news) throws Exception;
	
	NewsCommentBean updateNewsCommentBean(NewsCommentBean news) throws Exception;
	
	Page<NewsCommentBean>  findNewsCommentBeanByCond(NewsCommentBean bean,
			Page<NewsCommentBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveNewsCommentBeanExt(String sql) throws Exception;

	String findNewsCommentBeanExtCreate(String tableName) throws Exception;

	String findNewsCommentBeanExtEdit(String tableName, String id)
			throws Exception;

	String findNewsCommentBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasNewsCommentBeanExtData(String tableName, String id)
			throws Exception;
}